#ifndef OPENGL_EXTENSION_LOADER
#define OPENGL_EXTENSION_LOADER

#include <gl/glext.h>

static PFNGLPOINTPARAMETERFARBPROC  glPointParameterfARB  = NULL;
static PFNGLPOINTPARAMETERFVARBPROC glPointParameterfvARB = NULL;

static bool LoadPointParameterExtension()
{
    char *ext = (char*)glGetString( GL_EXTENSIONS );

    if(strstr( ext, "GL_ARB_point_parameters" ) != NULL)
    {
        glPointParameterfARB  = (PFNGLPOINTPARAMETERFARBPROC)wglGetProcAddress("glPointParameterfARB");
        glPointParameterfvARB = (PFNGLPOINTPARAMETERFVARBPROC)wglGetProcAddress("glPointParameterfvARB");
    }
    if(glPointParameterfARB != NULL && glPointParameterfvARB != NULL)
       return false;
    else
        return true;
}


#endif //OPENGL_EXTENSION_LOADER